package boot.vo;



import java.io.Serializable;

public class ResponseResult implements Serializable {
    private String responseCode;
    private String message;
    private Object returnObject;

    public static final String SUCCESS="200";
    public static final String FAIL="500";


    public static ResponseResult success(){
        return success("OK");
    }
    public static ResponseResult success(String message){
        return success(message,null);
    }
    public static ResponseResult success(String message,Object returnObject){
        return new ResponseResult(SUCCESS,message,returnObject);
    }
    public static ResponseResult success(Object returnObject){
        return success("OK",returnObject);
    }


    public ResponseResult() {
    }

    public ResponseResult(String responseCode, String message, Object returnObject) {
        this.responseCode = responseCode;
        this.message = message;
        this.returnObject = returnObject;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getReturnObject() {
        return returnObject;
    }

    public void setReturnObject(Object returnObject) {
        this.returnObject = returnObject;
    }
}
